package facade;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import service.IntegralService;
import service.LogService;
import service.MsgService;
import service.PaymentService;

import java.util.Map;

/**
 * @Author: YLTDMenglc
 * @Date: 2019/6/11
 * @Time: 13:01
 * @Description:
 */
@Component
public class PayCallbackFacade {
    @Autowired
    private LogService logService;
    @Autowired
    private PaymentService paymentService;
    @Autowired
    private IntegralService integralService;
    @Autowired
    private MsgService msgService;

    public boolean callbackFacade(Map<String, String> verifySignature) {
        logService.logService(verifySignature);
        paymentService.updatePaymentStatus();
        integralService.callIntegral();
        msgService.msgService();
        return true;
    }
}
